Skip to content

Fix mb_ereg_search_getregs() NULL pointer dereference#21038

Open
vi3tL0u1s wants to merge 1 commit intophp:PHP-8.4from
vi3tL0u1s:fix-gh21036-mb-ereg-search-null
Open

Fix mb_ereg_search_getregs() NULL pointer dereference#21038
vi3tL0u1s wants to merge 1 commit intophp:PHP-8.4from
vi3tL0u1s:fix-gh21036-mb-ereg-search-null

Conversation

@vi3tL0u1s
Copy link

Add NULL check for MBREX(search_re) before calling onig_number_of_names() in mb_ereg_search_getregs() to prevent crash when mb_eregi() invalidates the regex cache.

Fixes GH-21036

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant